#! /bin/bash
shopingmall=`ps -ef | grep MaijiCloud-ShopingMall-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
kill -9 $shopingmall
mvn dependency:copy-dependencies -DoutputDirectory=lib
nohup java -Xms512m -Xmx512m  -jar /maiji/MaijiCloud-ShopingMall/MaijiCloud-ShopingMall-1.0-SNAPSHOT.jar >> /maiji/MaijiCloud-ShopingMall/MaijiCloud-ShopingMall.log 2>&1 &
tail -f /maiji/MaijiCloud-ShopingMall/MaijiCloud-ShopingMall.log